import { Controller, Get, Query, Logger, UseGuards } from '@nestjs/common';
import { UserService } from './user.service';
import { UserRegisterModel } from '../../model/dto/user.dto';
import { AuthGuard } from '@nestjs/passport';

@Controller('user')
export class UserController {
  constructor(private readonly service: UserService) {}

  // @UseGuards(AuthGuard('jwt'))
  // @Get('/test')
  // test(@Query() query: UserRegisterModel) {
  //   console.log(query);

  //   Logger.log(query, 'UserController-test');
  //   return 'query';
  // }

  // @Get('/register')
  // register(@Query() query: UserRegisterModel) {
  //   return this.service.register(query);
  // }

  // @Get('/login')
  // login(@Query() query: UserRegisterModel) {
  //   Logger.log(query, '/login');
  //   return this.service.register(query);
  // }
}
